package com.fw.service.persistence.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.fw.service.persistence.dto.PaymentStatus;

public interface PaymentStatusDAO extends JpaRepository<PaymentStatus, Long>, JpaSpecificationExecutor<PaymentStatus> {

    @Query("select t from PaymentStatus t where t.statusCode = :statusCode")
    public PaymentStatus findByStatusCode(@Param("statusCode") String statusCode);

}
